import { createApp } from "vue";
import { createRouter, createWebHistory } from "vue-router";

const routes = [
  {
    path: "/login",
    name: 'login',
    component: () => import("@/pages/login.vue"),
  },
  {
    path: '/qualityData',
    name: 'qualityData',
    component: () => import('@/pages/dataModel/quality.vue')
  },
  {
    path: '/useData',
    name: 'useData',
    component: () => import('@/pages/dataModel/colData.vue')
  },
  {
    path: '/useDetail',
    name: 'useDetail',
    component: () => import('@/pages/dataModel/colData-item.vue')
  },
  {
    path: '/task',
    name: 'task',
    component: () => import("@/pages/quality/task.vue")
  },
  {
    path: "/error",
    name: 'error',
    component: () => import('@/pages/quality/error.vue')
  },
  {
    path: "/record",
    name: 'record',
    component: () => import('@/pages/quality/record.vue')
  },
  {
    path: '/site',
    name: 'site',
    component: () => import('@/pages/notice/site.vue')
  }
];

// 3.创建路由实例
const router = createRouter({
  routes,
  history: createWebHistory(),
});

export default router;
